package homework.workTest.RegularExpression;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * ignoreUrl
 *
 * @author byc
 * @date 2021-11-25
 */
public class ignoreUrl {
    public static void main(String[] args) {
        String icon = "http://61.160.81.178:20411/group1/M00/00/21/wKhZvGGLcLmASuVLAABz6nyhi4I563.jpgaa";

        String pattern = "group1.*.jpg";
        String test = "11111111111111";

        Pattern r = Pattern.compile(pattern);
        Matcher m = r.matcher(icon);

        String TestRes = m.replaceAll(test);

        System.out.println(m);
        System.out.println(TestRes);

    }
}
